#include <iostream>

void array_demo();

void array_demo() {
	using namespace std;
	int a1[3] = { 1, 2, 3 };

	int* a2 = new int[3];
	a2[0] = 1;
	a2[1] = 2;
	cout << a2[0] << endl;
	cout << a2[1] << endl;
	delete[] a2;
}